import request from '@/utils/request'

// 查询超链接列表
export function listHyperlink(query) {
  return request({
    url: '/api/hyperlink/list',
    method: 'get',
    params: query
  })
}

// 查询超链接详细
export function getHyperlink(id) {
  return request({
    url: '/api/hyperlink/' + id,
    method: 'get'
  })
}

// 新增超链接
export function addHyperlink(data) {
  return request({
    url: '/api/hyperlink',
    method: 'post',
    data: data
  })
}

// 修改超链接
export function updateHyperlink(data) {
  return request({
    url: '/api/hyperlink',
    method: 'put',
    data: data
  })
}

// 删除超链接
export function delHyperlink(id) {
  return request({
    url: '/api/hyperlink/' + id,
    method: 'delete'
  })
}
export function modify(id) {
  return request({
    url: '/api/hyperlink/modify/' + id,
    method: 'get'
  })
}